<?
    $a_startrow = $startrow;
    $a_maxrows = $maxrows; 
    
    
    require('wed_php_odbc.inc');
?>
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Accueil vide greniers </title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<div id="layer2" style="width:716px; height:237px; position:absolute; left:229px; top:3px; z-index:1;">
    <p align="center"><b><font size="6">Vide Greniers du 9&nbsp;octobre&nbsp;2022 Saint Lys</font></b></p>
    <p align="center"><img src="logoasparel tm.jpg" width="112" height="109" border="0"></p>
</div>
<div id="layer1" style="background-color:white; border-width:1; border-style:dashed; width:230px; height:211px; position:absolute; left:4px; top:3px; z-index:1;">
    <p align="center"><b><font size="4" face="Arial">Déjà inscrit ?</font></b><font face="Arial"></font></p>
    <p align="center"><b><font size="3" face="Arial">Consultation de votre fiche</font></b></p>

         <form name="Consultidentifiant" action="inscriptionvg.php?" method="get">
        <p align="center"><b><font size="3" face="Arial">Identifiant d'inscription :</font><font size="3"> </font></b></p>
		<p align="center"><b><font size="3" face="Arial" color="red" font-weight="bold">Identifiant inconnu</font><font size="3"> </font></b></p>
        <p align="center"><input type="text" name="chaine" maxlength="10"></p>
        <p align="center"><input type="submit" name="Valider" value="Valider"></p>

            </form>
</div>
<table border="1" width="916" align="center" bgcolor="#B5D673">
    <tr>

<p align="center"><b><font size="4">
        <td width="378">
            <p align="center">			        
                         <form name="form1" action="saisie.php" method="get">
                <p align="center"><font size="4" face="Arial">Cliquez sur le bouton ci-dessous pour une nouvelle inscription</font></p>
                <p align="center"><input type="submit" name="Valider" value="Nouvelle inscription" style="font-family:Arial; font-weight:bold; font-size:20px; color:red; text-decoration:blink;">&nbsp;</p>
            </form>


        </td>    </tr>
</table>


<?  
    $w_disprows = 400;
    
    $w_sqlstr = "SELECT emplacements.num, emplacements.identifiant FROM emplacements WHERE (emplacements.identifiant = '0')";
    wed_read_list_process ("VGreniersAsparel", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);
  ?>
<?  
    $w_disprows = 400;
    
    $w_sqlstr = "SELECT emplacements.num, emplacements.identifiant FROM emplacements WHERE (emplacements.identifiant <> '0')";
    wed_read_list_process ("VGreniersAsparel", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows1);
    $pourcent = ($w_rows1/49)*100;
	$pourcent = (int) $pourcent;
  ?>



<?
echo "<p align=\"center\">";
    $w_disprows = 400;
    
    $w_sqlstr = "SELECT emplacements.num FROM emplacements WHERE (((emplacements.identifiant )= '0') AND ((emplacements.voitures)<>0)) ORDER BY emplacements.num";
    wed_read_list_process ("VGreniersAsparel", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);

   if($w_rows != 0 )
     {
echo "<p align=\"center\"><b><font size=\"5\" face=\"Arial\">"."Emplacements libres :"."</font></b></p-->";
echo "<p align=\"center\">";
    for ($w_i = 0; $w_i < $w_rows; $w_i++) {
    	$f_emplacements_num = $w_record[$w_i][0];
    	
                                              
                                              wed_write($f_emplacements_num);
		echo " - ";

								
     }
echo "<p align=\"center\"><font size=\"3\" face=\"Arial\"><b>"."(Vous pourrez&nbsp;valider la réservation de vo(tre)(s) emplacement(s), dès la fiche d'inscription remplie)"."</b></font></p>";
    }
 else
     {echo "<b>"."<font color=\"red\" size=\"5\" face=\"Arial\">"."Vide grenier complet, des places peuvent se libérer, n'hésitez pas à revenir"."</font>"."</b>";	
    }
?>
</p>

<p align="center"><a href="planhd.htm" target="_blank"><img src="emplacements tm.jpg"+(new Date()).getTime() width="1000" height="942" border="0"></p>
</body>

</html>
